package com.szly.phm.common.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.szly.phm.common.entity.dto.screen.*;
import com.szly.phm.common.entity.po.CbandRealdata;
import com.szly.phm.common.entity.vo.screen.FiRealTimeFileStructureVO;
import com.szly.phm.common.entity.vo.screen.SubsystemVO;
import org.springframework.data.repository.query.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author admin
 * @since 2021-12-09
 */
public interface CbandRealdataMapper extends BaseMapper<CbandRealdata> {


    List<Map<String,Object>> selectCbanRealField(KeyPerformancesDTO keyPerformancesDTO);
    List<Map<String,Object>> selectCbanRealField2(ScoreHistoricalDataDTO keyPerformancesDTO);
    List<Map<String,Object>> selectCbanRealField1(SystemAdaptationParameters keyPerformancesDTO);
    Map<String,Object> selectRealField(RealTimeFiledDTO realTimeFiledDTO);
    Map<String,Object> selectRealField(SystemCalibrationDTO realTimeFiledDTO);
    Map<String,Object> selectRealField1(String table );
    Map<String,Object> selectRealFieldTa(String table );
    List<Map<String,Object>> selectRealFieldChange(String radarId, String field,String table,Integer PageNum,Integer PageSize,String startTime,String endTime );
    Integer selectRealFieldChangeCount(String table,String radarId,String startTime,String endTime);
    Map<String,Object> selectRealUnit(String Field);
    void addFalseData(@Param(value="map") Map<String,Object> map, @Param(value="table_name") String tableName);
    void addFalseDataZ9796(@Param(value="map") Map<String,Object> map, @Param(value="table_name") String tableName);
    List<Map<String,Object>> selectSubsystemMonthlyStatus(SubsystemMonthlyStatus keyPerformancesDTO);
    Map<String,Object> selectCRealData(Integer limitC);
    Map<String,Object> selectSRealData(Integer limit);
    List<FiRealTimeFileStructureVO> selectFiRealTimeFileStructure(SubsystemDataDTO realTimeFiledDTO);

    List<SubsystemVO> selectSubsystem(String radarId);
    List<SubsystemVO> selectFixedSubsystem(String radarId);
    Map<String,Object> selectEnvironmentalParameters(String table,String radarId);

    Map<String,Object> selectNowHealthScore(String radarId);
}
